package com.dataart.productshop.service;

import com.dataart.productshop.model.FileInfo;
import com.dataart.productshop.model.Type;

import java.util.List;

public interface FileInfoManager {
	
	FileInfo getById(Long id);
	
	List<FileInfo> getByDownloads(int from, int amount);

    FileInfo getByIdEager(Long id);
	
	List<FileInfo> getFirstFive();
	
	void saveFileInfo(FileInfo input);
	
	List<FileInfo> getByType(Type type);
	
	List<FileInfo> getByType(Type type, int from, int amount);
	
	List<FileInfo> getNextTenByType(Type type, int from);
	
	void delete(Long id);
}
